package com.xiaochi.subject.domain.service;

import com.xiaochi.subject.common.entity.PageResult;
import com.xiaochi.subject.domain.entity.SubjectInfoBO;
import com.xiaochi.subject.infra.basic.entity.SubjectInfoEs;

import java.util.List;


/**
 * 题目邻域服务接口
 * @author zqx
 * @since 2024/8/6
 */
public interface SubjectInfoDomainService {

    /**
     * 新增题目
     * @param subjectInfoBO
     * @return
     */
    void add(SubjectInfoBO subjectInfoBO);

    /**
     * 分页查询
     * @param subjectInfoBO
     * @return
     */
    PageResult<SubjectInfoBO> getSubjectPage(SubjectInfoBO subjectInfoBO);

    /**
     * 查询题目信息
     * @param subjectInfoBO
     * @return
     */
    SubjectInfoBO querySubjectInfo(SubjectInfoBO subjectInfoBO);

    /**
     * 全文检索
     * @param subjectInfoBO
     * @return
     */
    PageResult<SubjectInfoEs> getSubjectPageBySearch(SubjectInfoBO subjectInfoBO);

    /**
     * 获取贡献榜
     * @return
     */
    List<SubjectInfoBO> getContributeList();
}
